implemented display() & get rid of some hard-coded constants