refactor the Computer Graphics for future extension