Working without dynamic allocation