Extended Einstein-Maxwell model