implement the framework of tasks.