Getting started with a simple function