Wrote outline for main function and mesher