professor adding working still need to add error checking