Interactive Learning of Environment Dynamics for Sequential Tasks