both functions were implemendeted. Code is commented