add functions to Instruction class, need more functions to port