Implement the curry example with several variations.
Clean up syntax