imported all the constants into to constants class, first implementation of decoder