I read that it's a good idea to keep the number of globals in your project as low as possible. now what would be good ways to avoid global variables?