statistics implementation - structure