added usage of animated class