apply from some example code.