first test written and passing, needs to be refactored