The Heap Class with it application