First draft for input and output