implemented CircleCode class