Cloud computing is a subscription-based service where networked storage space and other computer resources can be obtained. Due to its high availability, easy accessibility, scalability and adaptability, cloud computing is highly desirable in the rapidly growing world of computer technology. Because of this high demand, the Cloud Computing and Distributed Systems (CLOUDS) Laboratory built the CloudSim framework, which became very popular open source cloud simulator among the researchers and students. CloudSim is new simulation framework which allows uninterrupted modeling and simulation of cloud computing infrastructure. It helped open up the possibility of evaluating the hypothesis in a controlled environment where experimental results can be reproduced easily. This basic goal of this paper is helping the researchers to understand CloudSim's most important functions and its practical usage, and to take insights on hands-on example of creating a simulated cloud environment.