layout of class