Importing existing (old, very old) code

Signed-off-by: Rodrigo Goncalves de Oliveira <rodrigo@thecoreme.org>