finally understood how to lib modules work, very useful for reusing code