finish inheritance and functional problem set