libraryconstructor, array works, print method ok