Wrote a function to extract the information from an instruction