At the right hand side is the the task, starter code and code clips that pupils got. Below is a link to the solution. You can right click open on replit to demo the answer to pupils and talk through the code.
Incase it doesn’t load above here is the link