added print and append functions, and in main created list