Similar experience. It was frustrating and annoying at first for me too, because I was trying to write imperative code in Prolog syntax. But once the new paradigm clicked in my head, OMG, I started loving it. That moment of enlightenment alone was well worth taking that class :)