refactored example code
moved append to standard library
added some logical operations to std lib
foldl + sum
varargs for and, or, xor