wrote inmemory version of InsultApp
moved Type enum to its own class file