Support inheritance with @extends

#10