I would like to have a header that looks like
<my name> <Class> <page number>
<Student number>
However, I can't figure out how to insert the second line. What I've attempted is:
%Page layout here
\documentclass[letterpaper]{article}
\usepackage{lastpage} %lets me find out how many pages there are
\usepackage{fancyhdr} %allows me to fiddle with the header and such
\pagestyle{fancyplain}
\fancyhf{}
\renewcommand{\headrulewidth}{0pt} % remove lines as well
\setlength{\headheight}{15.2pt}
\chead{How do I get this to work?}
\rhead{\thepage\ of \pageref{LastPage}} %Add the page numbers to the to right
\lhead{Canageek\\3.14159}
%End footer
\begin{document}
Test
\end{document}
However, as you can see, this causes the essay name and page number to be on the same line as my student number, not up with my name as they should be.
I've found two related questions. The first does some stuff that I think I can avoid, since I don't want everything right-aligned, while the second seems to accomplish it by modifying the second titles, which isn't what I need.

\\to the end of\cheadand\rhead? – Silex Oct 6 '12 at 17:06