finished main exercise