used test.c for checking switching cases
implemented the second fuction findParityS for when sending. checked that the function works now.