learn pure functions in 10 minutes