Object like extension example in C