class Item { String title; PImage img; float x; float y; // Creates a new Item with title, image, and position Item(String title, PImage img, float x, float y) { this.title = title; this.img = img; this.x = x; this.y = y; } // Displays this item void display() { image(img, x, y); } }