Implemented Q-agents