First Working Version
main.c is fully set up