Introduction to gauge theory