simulation in seperate class