Explain how treasury stock affects stockholders equity section of the balance sheet and its impact on the calculation of earnings per share.