Adding solutions for HW 6