The task with the bouncing ball (extended)