organizing code to start working