class Employee(object): @classmethod def from_string(cls, emp_str): first_name, last_name, pay = emp_str.split(\'-\') return cls(first_name, last_name, pay)