class extension + inject example