Assignment2

added functions