initial commit with the baseunit class that phillipe made