solved execice 2