Programming techniques : The shower room problem