added PartD and assignment3