Add a Class "object" with extend and inherit method