Fundamentals of quantum mechanics