further implementation of structs; not working, yet; needs refactoring
later...