ruby: working with math/numbers