updating the readme
adding tests and new pattern