Commit with getter and setter method