Cleaning up lesson 3 code