Category of locally ringed spaces