Part of Assignment 1 part 1 in CMPUT333