Completed homework of lesson 2 (problem set 1).