Prototyping different functions