Updated print function for periodical
Sorted set working with periodical.