Wrote framework for main