Both mitochondria and chloroplasts