Project for statmet course at KTH. Implemented MCMC method to solve the train problem that estimates the probability of train being in the node given the railroad model and switches.