Added synchronized instance method example