Solution for GC 4