Added solution to HW number 2