my code of homework3