Fixed the bug W_t was not working. Now completes with non undefined answer but wrong answer.