John was visiting four cities that form a rectangle on a coordinate grid at A(0, 4), B(4, 1), C(3, -1) and D(-1, 2). If he visited all the cities in order and ended up where he started, what is the distance he traveled? Round your answer to the nearest tenth.