MD fix for homework3