use of @Autowired to access the class