Added new Distance type class too.