Corrected some mistakes in methods. Weight estimation for a function in the class works!