Add classes method behaving as the iOS command