Create writemoment2.c