Fixed Quartus logic and wrote lab 3 program