my solution to the NameSurfer assignment from the iTunes U course CS106A, Programming Methodology