Wrote eval functions