Updated task 2 with unlimited friend ages