first version of homework3