Applied new setter and getter methods to IP