added solutions for phase 1