Submitted code to Professor Gash