learning basic Ruby some more, created a class