Create Dynamic Array With Function