main hartl sample application