Extracted Methods from main