Modeled after java atomic integer class
Added Get and set