Project1C for UCLA CS143