calculate avg age
allow to customise the group label
documents the htmlGroup