Changed professor's file to create my own functions for assignment 2