updated example with comments for beginning animation