add rspec skeleton
Refactor define to its own file and add tests