Implements addToInstrucions with list input.