Improved example code with :active example.