Finished RBF part
Baseline of the code