Injecting beans using constructor