solution2 complete

completed solution 2