wrote skeleton code