added draw circle funciton to midpoint model