Added cpp source to first 3 problems