You're defining instance methods here when the previous scope was providing class methods.