how indian railway works