Refactory class instagram