The name e is not defined here. Same problem in several places.