Added example code for newly added functions.