Tried to implement model-view pattern, currently plot doesn't update