Another approach that does not need a file