Nontrivial extension of the two-dimensional Ising model: The d-dimensional “molecular” model