implemented less-than and equal-to using functions as first class values.