Which organ system performs the same function as the cell membrane, serving as a barrier between the inside and the outer environment?