source code for train calendar alpha