Added display() and operator<<() functions.