More functions for Chapter 4 exercises. Removed a file I accidentally committed.