Adding solutions for 1st homework