Ruby practice code done in Java- just 'cause I like Java