implemented reverse function . Mary and Marco