Added helper class with static methods  and made existing problems use
these helper methods