Rewrite lookup() with combinators