added solutions for hmwk 2