add GetContract method