Introduction to First-Principles Method