The Enchanted Window of Hogwarts Express

So theres this enchanted window on the Hogwarts Express that used to be in the teachers cabin. Now the Marauders are having a fun time listening in on the students conversation. The window is bewitched to every other window in the other cabins, it brings out the sound. So what ever cabin number you bewitch it too you can listen to the conversations going on in there.