Converted cView to be defined as a class