Basicly finish the coding of task class... Should be tested.