Wrote animation class.