server code and linear classifier code