Fundamentals of glasses