Tinkering with pattern matching ideas