creating animation class