In Russian, you use the dative case to indicate who receives something else. In grammar books this is usually called the indirect object, but you can think of it as answering two main questions. In both of these examples, there is one subject (Charlie/Dan) and two objects.