Introduce binary units
Add rspec for testing