the pool puzzle exercise regarding loop and if statements