Create AnimationFactory.java