created a to string method