Link Preview code split in classes