Rewrite of Maybe using Just and Nothing