Equal values for both methods
Extracted method from main, writing