Added Functions class with repeat and generate functions
Created CollectionMonoid