restructuring chromecast classes