moved function to cob_common
changed classes names, following PEP8