transactions.cpp: added pseudo code.
added transaction.h file.
added transaction.cpp file.