The Original version of Homepwner before porting to Objective-C