Mechanically, the contraption is made of 30 air pumps hooked up to a power supply, and it relies on some basic principles of gravity and air pressure. Your physics teacher probably tried the same ...