Taking input as commandline works fine though!
It seems i need to enter twice to get an input. Cant seem to understand why?