organizing code into lib and bin