How to extend block

I also want to do this in my extension.