added comments for TaskClass