added the to_s method