created a sample main loop file