Add chapter5q sample