Refactor-4: different approach, same result (lines 7, 15)