First version of groups generator