Stanford model implemented and tested.