The benefits of flexible homework