Converted FormulaBrick to an abstract class