Added toString method to task