RL demo implementation