First Attempt at Assignment2

Added functions