Input and output combined

Module with combined input and output functions.