My class was deleted, due to the virus.
I am supposed to solve the following problem:
Let $A$ be any set of positive real numbers. Construct a metric space $(X, d)$ so that the set $A$ is identical to the set of all distances of different points of the space $X$.
My solution: \begin{align*} X&=\left \{ 0 \right \}\cup A\\ d(x,y)&= \begin{cases} 0 & \text{if $x=y$,}\\ \max\{x,y\} & \text{if $x\neq y$.} \end{cases} \end{align*}
Is that correct? How should I continue?