at first they studied medicine physics and chemistry and later on philosophy and painting in munich