making period a model in its own file