Implemented Basic Functions