almost working e20 in scala