Add getAndSet() method
Merge pull request #1 from maryjos/development

Add getAndSet() method