Adds write example program to repository.