Title: Theoretical studies of bound states and resonances in two- and three-body systems