Implement create cluster function