Prototype works and passes all unit tests