Added custom position class to store positions and properties.