Class definition for API collaboration and A easy version of dict