A theoretical model of a wave packet in the boundary layer on a flat plate