Implented RTRL model , but has bugs