added an example of autowiring by type