More common code and add exercises 2