finished template methods for asst5 animation