Use object's set and initializa methods in group

As suggested in #926