exam3: unix + turing machine questions