updated to object parameters
updated to object parameters
Methods recieve objects instead of arrays now