define input and output