caitalized objects with init method and crated slection sort algorithm