Assignment2

Functions and explanations added