Added and updated methods in Task class