For COMP9322 Ass1 Part 1-2