Print function for the COCOA is created. Class structure is defined