creating code structure