Bug fixing, added sample

Signed-off-by: Ozan Turgut <ozanturgut@gmail.com>