Implementing functions (2).