reading scalar input implemented, tested, working!