calculateSignalStrength also added to plaintext.c in full solution
Solution to step 1 (extracting state machine pattern from C code)