So code from book requires x-kernel, which we can't use for assignment.
Added header protion of frame.