Fixing type signatures in sample application