Added the parallel and series calculations