Pattern matching assignment solutions