There are 3 doors to a lecture room. In how many ways can a lecturer enter the room from one door and leave from another door ?