created utils module to abstract reusable code