functions created and first unittest