added AssetManager class to centralize asset management.