On Friday, 18 September 2015 at 11:11:51 UTC, Namal wrote: > compiles but crashes For me it works fine. You probably have extra spaces or something in your file. It would help if you posted the error message you get when running the program.