Change README code examples now functions need not be defined in advance