adding playground re classes and structs
did some slight refactoring