the code of homework5