Making an input grouping