adding methods for calculating profit and constraints
changes
Changes