Problem 22 / fivepoint function separated