A bar magnet having a magnetic movement of $2\times10^4 JT^{-1}$ is free to rotate in a horizontal plane. A horizontal magnetic field $B=6\times10^{-4}T$ exists in the space. The work done in taking the magnet slowly from a direction parallel to the field to a direction 60º from the field is :