Merge new class "position"

Replaced old struct "position" by a class for more flexibility