using classmethod decorator in class