Added utils.c that will contain all the utility functions