homework functions created