>>12071735This, but, to add, try to do the examples without looking at the given solution first. Only take a peek when you're stuck after a few minutes of thinking, and only look as far as you need to get unstuck.
This should help with forming your own mental structure of concepts. If you understand why something is the way it is, you can't forget it (or, at least, it's much more difficult).