Code for Pair Assignment 1