Implemented Period constructor, getBeginTime(), getEndTime()