add third library and update view controller code