adder PIR Object. Refactored code