modularized the code by making constants class