Updated File Structure
Separated Code Logic from Execution