added rspec tests and Shift class