began refactoring into classes | implemented 1st rspec tests