completing functions exercises