first impl
rspec test with typical examples