wrote some starting code for handling names and fleshed out the main loop a little bit