Added more functions along with loops

Added more functions,for-loop, and while-loop.