Fixed types/errors in 2d chapter