I fixed it. added self and fixed variable names.