create and refactor to_s method