Turned class Task to a Q_OBJECT