A capital accumulation simulator