Create Base Functionality

will solve based on cost functions only.