Some functions working, now I need determinant