Implemented getX and getValue

Implemented getX and getValue