Homework 5 for Camera demo