added function literals, tests work