Simplified asList-method
Added implementation of functions and predicates for ex1