add a solution wihout Map.