Sources of quantum mechanics