Validator, inputs, and outputs for all groups. Fixed integer division error