Added rspec tests
Added basic functionality