Genesis of Quantum Mechanics