added adt excersise solution