working in a hot , cramped flat on the top floor of an apartment building on the outskirts of karachi , the three linked together a series of hewlett-packard computers they 'd purchased online with a government grant .