#041: Serpentominous

While this puzzle is even smaller than the introductory puzzle, it’s probably a little harder. You might be able to solve this with some bashing, but there’s a really neat solution involving a bit of theory.

Rules: Draw a non-intersecting path through the centres of some cells. Circles mark the ends of the path, if given.The path is divided into sections of five cells, forming non-overlapping pentominoes. Consecutive pentominoes along the path must have different shapes, counting rotations and reflections as the same.The path must visit every clue and the clue indicates which pentomino it is part of.