animations by creating classes