Lab4

fixed bug with fault state.