Trying to replicate error with Int rather than Unit