Used constructor injection instead of method injection.