classes syntax and inheritance