So i had this guy come to my school awhile back. He was going to help our class write and record a song.

He had a laptop with some program on it, an acoustic, an electric, a few foot pedals, this other box (not sure what it was), and a few mics.

He could just hook his guitars up to his computer through his foot pedals and record his song straight onto the computer. Than he just stole some drum beat he already had on his computer and mixed them to gether. Than he would record us singing and mix that into it as well.

How did he do it and how can i do it? And what do i have to do to record drums aswell?

Thanks for any help.
What the hell is the internet?