add timeline into java class