COMP249-Assignment1(done)