upgraded sample application to yaf 2.0