build the delegate demo program