finished simulation part of class