Refactored out inheretance coupling by using composition to represent processing of resources.