Planning surgery- a computer simulation