work out skeleton code