First working implementation
Pulled out examples into examples.rb; starting to add specs