updating solution

updating solution