main() now accepts manager instance as a parameter