__construct for Task