Some tests and code that show how one might approach the sales engine project