Miles codes