Separate utility class and sample