Final implemented functions

Final version of implemented functions