creates object.does fuction