Homework adapted