Added salesengine class and test