Declared num_inputs as an Integer with appropriate bounds