add example extends and implements class