Changed class implementation to support multiple inheritance
Added name safety to class keywords