added barebones implementation of phrase classes