Modified synchronization. Added AtomicInteger and syncrhonized on a gas pump instead of the whole object