working solution and spec to annagram homework