moved homepurchase to own file and set up to be more objecty