added functionality for example one