basic pattern matching is implemented, chuck yers