Protein-like copolymers: Computer simulation