School project using dynamically allocated array for storage