GDM homework3