Adding display() function