The indirect object is a person or thing secondarily affected by the action of the verb, the direct object being primarily affected. The indirect object appears in the sentence as a noun (or pronoun) unconnected by a preposition. It is positioned between the verb and the direct object. Like this:
He gave the class his views on the theory of relativity. Notice that the transitive verb gave has a direct object views. The noun class serves as the indirect object.