Molecular states of heavy quark mesons