What will be the FLow of object creation for making transaction use case

We have make_transaction() method present in all three classes i.e. ATM,Customer and Transaction.
It is not clear which class will create instance of which other class and call their method? so that we can cover transaction use case.