beginning to write functions, have a good idea of what I want to do