getting the class structure.
still working through some bugs