finished most everything cept the simulation part...