Added spring and worked with configuration