added buy operation, creates a transaction