first soln for 2