test based on http://www.engineeringinteract.org/resources/siliconspies/flash/tests/questions/electricity.htm