Construction of exact solutions of the Boussinesq equation