my implementation

my implementation of the functions plus comments