Fixing Stuff

Working Friend Function