homework3 - part3 added