Added small code snipped rvm.c to be more efficient in understanding the problem