complete sample1 add logger