added getValue() method