Simulator of Logic Gates