Montes, Juan, 1840-1899