A shell model calculation with reaction matrix