added classes and spring.xml