Task for hw4 copied