Updated the over example. Fixed bugs, added test.