adding basic classes, Pattern and Position