Eliminated "inputDim" variable for clarity.