Class Sample on inheritance and interfaces