Created class for Task handling