Lessons are what we took at the pool to learn to swim better.

Answer: I think the sentence is written correctly.

It's terribly awkward. I'd reword it.