Design of proteins with hydrophobic and polar amino acids