add profit function skeleton