Sketching out the required functions