Fundamentals of nuclear physics