creating better, modular program structure