Implemented the functional evaluation; tested successfully