creating timeline class