Add sample programs

this patch depends on #63 (315.1.10)