Imposing the desired behavior on a chaotic system