Resource-Based Models of Visual Interaction: Learning from Errors