commit with modified code with Object Oriented