Create david's code