Idea about code structure