Solved ASRPartOne challenge! Also cleaned it a little bit so it's more readable.