add stack and pc to constructor, sorted constants, completed the operations