Some examples using functions