class writing in cojoko