Adding the homework result for 3.1.