Definging inputs and outputs