new code structure in medium