Exercises from Java24 book