Complete functions with working code


Signed-off-by: durgaravi <v2durga@gmail.com>