extended hastings example