Playing around with Ruby classes and IFs