Reconfiguring code to separate function and gui, part 1