-*-cv-*- added provided code for third assignment