code redesign first step