added the possibility to call tasks using their class