impl'd most of lambda + tests.. not done