Created a function Value which contains a hash in which store a number