handwritten abs function