added sample midterm workings