moved shit out of the main.cpp into parse.cpp, also created an exec function to handle arbitrary input
starting array indexing