Merge pull request #11 from iporsut/master

Simple pass test 7
Extract Method compareSwap