added first example, debug fixes