Experimenting with error function