allow inheritance to extend task

People may need to extend PeriodTask class to add some specified attribute.