Whispering gallery modes, well-known for acoustic and optical waves, have been shown recently for electrons in molecules on surfaces. The existence of such waves opens new possibilities for nanoelectronic devices. Here we propose a simple analytical textbook model which allows the main characteristic features of such electronic waves to be understood. The model is illustrated by two- and three-dimensional experimental situations.