Added << operator and print method