How do I make a kid table that can fold up onto the wall?

How do I make a kid table that folds up on to the wall when not in use