First working ASM for Lab 4