Students, teachers adjust to distance learning