Ingeritance and mateclass