Modified the code by including structure implementation of constants