.display method added, out put in correct format