add answers for homework 2 and formatting