random changes
added resources
added functionalities to sample