dynamic memory alloc exercise problem 1