Introduce and use from_unit and from_string class methods