class mechanics