Completed Project 4 Code