get all exercises function