This is my solution to final question #1 in final for CS215 at Udacity.com