Completed programming assignment 2

These functions demonstrate lexical scoping