Implements getters and setters for the Item class.