Part E has a missing output and code could have been written better.