wrote structure parser and a trivial test