finished creer_LP function, comments will be added soon