Updated midterm - it works!