A rails challenge in class