Added serial code of assignment 4