Finsihed solution in equal.c