added __str__ and __repr__ methods