Implemented a class to hold the values