EECE412 assignment 3