Still need improvement on calculating e.