Begin code qlearning eigen branch