created spec file and passed all tests
reformated to use the patterns as a module global
fixed a missing comment