Question 4In the figure below, $BAD$ is a right angle, and $C$ is the midpoint of segment $AB$. Given the dimensions marked in the figure, the length of $CD=\sqrt a$. Find $a$.