added some psudo code

Signed-off-by: Alexander Skjolden <alex@plastboks.net>