Added a RelativePosition class, made changes to effected classes