Added synchronized keyword resolved #3.
 Merge branch 'issues/3' into 'master'

Issues/3