adding handling of classes, and setting css properties