BingXiao_Assignment2

Edited two functions