Refactored giving and receiving money into shared module