Assignment 2 Working Functions