Finish formulation of homework 2.