implemented types attribute of Instr class