Added a better example; wrote code to produce animations.