use applicationContext to define dependencies