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