functions personal

fixed code in second example.