Ch 14: Finish typing given code