How the diagnosis and staging of cancer works