Trying to solve ACODE