Unused imports removed
Middle square generator