Use annotations instead of old style inheritance.