they studied in cadiz and then in madrid