Solution to FB sample.