Neutron star with magnetic field