Modified assignment 6 for serie 3