i was thinking about it
The machine part you need is in the middle of the water in the Cerulean gym.