fixed typo reference to @balance instance variable
add transaction code and fix flickering test