moving the value method up to the class