added tests and created class in lp.py