#1 solved in Julia :)