Data science

Needs review
Use the new Ruby 1.9 hash syntax.