A first course in electromagnetism