added definition of print out method