Assignment2

Complete two functions of the assignment work