updated hooke example