Add example programs from the reference implementation