unit Client; {$mode objfpc}{$H+} interface uses Classes, SysUtils, MufasaTypes, Window, Input, Files; type TClient = class(TObject) constructor Create; destructor Destroy; override; public MWindow: TMWindow; MInput: TMInput; MFiles: TMFiles; end; implementation // Possibly pass arguments to a default window. constructor TClient.Create; begin inherited Create; MWindow := TMWindow.Create(); MInput := TMInput.Create(Self); MFiles := TMFiles.Create; end; destructor TClient.Destroy; begin MFiles.Destroy; MInput.Destroy; MWindow.Destroy; inherited; end; end.