Implemented repetitions

Close #16