finished first iteration of flip book
turned functions into object functions