Practised designed patterns using Java Programming language