object implementation in iOs