Andreas problem code