Old thread but I want to share my work with others it might be useful.

The problem was here:


public int accelerate(int ac)
{
ac = ac + 5;

return ac;