added helper class and example