skeleton code for PA3