Implemented first example.