Writing two functions plus comments