add toString method so tests pass