change method parameter to cls: classmethod