A first course in rings and ideals