Example showing a simple squared function