declare fields in fields and fix typo in class TaskProgress