Last homework of Stat545a