added basic position class containing function to determine value