adding proposal and basic fitting code