Made Frogatto use lib_2d instead of using a duplicate of the code.