get_position function

Create a getPosition data accessor