add printInstruction method