rubocop errors
period_type => cycle_type
minor