added solutions for hw1 and hw2