Added a file to specify utility functions
Added utility function to get valid value between min and max