parsing attrs is ok
getting closer to a working state
test cases passes, switch still missing