fluent calculator in ruby