Adding example program
Fixing errors so that pr compiles