added main.c from lab; gitignore