added one property in class: max_task_num; and reuse other properties as class attributes
implemented unit test for add_task method. Close #30