Math + algorithms on Rails.