Implemented and tested the function call altogether.

Signed-off-by: Bryan de Holanda Fernandes <bryan.h.fernandes@hotmail.com>
Signed-off-by: Macartur de Sousa <macartur.sc@gmail.com>
Signed-off-by: Victor Cotrim <cotrim149@gmail.com>