Electronic Properties Of Confined Systems In Single And Bilayer Graphene