Moved input and outputs to code blocks