Method for building group header.