PA01 code finished and debugged with pa01.c with no failing cases.