feature #159 added value() method

See issue #159