The code has implementation of a finite state mach+ine