added accessor methods (issue #1)