Add abstract class for getvalue