better example for extension