final version of project. removed comments and print statements