moved overlay to new class
moved line drawing to new class