rename 'display' method to 'update'
tidy drawLine