Fixed up function application, added lambda application case