Repository to solve a simple train problem