added code to the skeleton code