lab-07: Add prepare function for task 10