adding grouping and selecting methods + updating examples