created mechanics class