Solution to Programming Assignment2

This is my solution to programming assignment 2.  It is very much
similar to the vector example given.