Use currying instead of lambda expressions