animation talking to a class