Completed chapter 4 of An Introduction to Programming in Go