refactored video functionality to set up object oriented approach