Adding rough code of initial ideas