Update solution
Fix compliance with C89