You should call buy() in the Pharmacy class and sell() in the Person class. It's quite obvious, if you read only the methods' names. However, if you read this two (or see the output), the other pairing is more logical.