is there an elegant way to create a class from the attached code:
ratings_data = { \'TV-PG\': 7,\'TV-MA\': 18,\'TV-Y7-FV\': 7,\'TV-Y7\': 7, \'TV-14\':