Modifying function libraries to be BASH classes