Moving code to its own classes instead of using regions