CPP homeworks