added actual package code and tests