Introduced Coords class - now using this when calculating borders