modified internal class structure
modified internal class structure (now a ui creates the backend and not vice versa)