added framework for background subtraction provided in class