Introduction to electric circuits