IPCV assignment 2