Completed homework of lesson 3 (problem set 2).