adding finished_tasks
less syntax
set_state -> set_task_state, formatting cleanup, adding finished task to finished_tasks