refactoring into a library cookbook so Josh can have his cake and Noah can eat it too