solutions for homework 2a 6479712