A calculation of nucleon structure functions