implement toString method in Task