A textbook in electricity and magnetism