Accounting and Segmentation Fault