interface and heap whith array