Adding code structure