input tutorial code