lab 4 part A skeleton code