Made classPeriod extedn RestObject