update example to wrap input in (begin), improve textareas for input & output