Basic class layout and some primitive functionality