accounting for stock transactions