Submitted code

Fixed int get_total() and rewritten void inc(). Commented.