Add put method in Space class