solution homework 3.1