bouncing balls as an MVC example