Created train class