Adding scala syntax