qlearning connected to firms