The wreath product and its applications