added Repeat class